package models;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Formula;

@SuppressWarnings("serial")
@Entity
@Table(name="sys_icdfl")
public class Icdfl extends IdEntity{

	private Integer sjid;

	private String lb;
	private String zjm;
	private String bmfw;
	private String mc;
	
	@Formula("(select COUNT(*) from sys_icdfl d where d.SJID = id)")
    private int subCount;
	
	public String getBmfw() {
		return bmfw;
	}
	public void setBmfw(String bmfw) {
		this.bmfw = bmfw;
	}
	public String getLb() {
		return lb;
	}
	public void setLb(String lb) {
		this.lb = lb;
	}
	public String getMc() {
		return mc;
	}
	public void setMc(String mc) {
		this.mc = mc;
	}
	public Integer getSjid() {
		return sjid;
	}
	public void setSjid(Integer sjid) {
		this.sjid = sjid;
	}
	public String getZjm() {
		return zjm;
	}
	public void setZjm(String zjm) {
		this.zjm = zjm;
	}
	public int getSubCount() {
		return subCount;
	}
	public void setSubCount(int subCount) {
		this.subCount = subCount;
	}
}
